#include <iostream>
using namespace std;
class Rectangle
{
    int wide, high;

public:
    Rectangle(int w = 0, int h = 0) : wide(w), high(h)
    {
    }
    int width() const
    {
        return wide;
    }
    void width(int w)
    {
        wide = w;
    }
    int height() const
    {
        return high;
    }
    void height(int h)
    {
        high = h;
    }
    friend ostream &operator <<(ostream & os, const  Rectangle &r);
};


ostream &operator<<(ostream & os, const  Rectangle &r){
    os <<"height:"<<r.height() <<endl;
    os <<"width:"<<r.width() <<endl;
    return os;
}